
proc template;
define style Styles.Custom;
parent = Styles.RTF;

style usertext from usertext /
      font_size=10pt;

replace fonts /
'TitleFont' = ("Times",10pt,Bold) /* Titles from TITLE statements */
'TitleFont2' = ("Times",10pt,Bold) /* Procedure titles ("The _____ Procedure")*/
'StrongFont' = ("Times",10pt,Bold)
'EmphasisFont' = ("Times",10pt,Bold)
'headingEmphasisFont' = ("Times",10pt,Bold)
'headingFont' = ("Times",8pt,Bold) /* Table column and row headings */
'docFont' = ("Times",8pt) /* Data in table cells */
'footFont' = ("Times",10pt) /* Footnotes from FOOTNOTE statements */
'FixedEmphasisFont' = ("Times",10pt)
'FixedStrongFont' = ("Times",10pt)
'FixedHeadingFont' = ("Times",10pt)
'BatchFixedFont' = ("Times",6.7pt)
'FixedFont' = ("Times",10pt);

style GraphFonts from GraphFonts/                                                              
'GraphDataFont' = ("<serif>, <MTserif>",10pt)                          
'GraphUnicodeFont' = ("<MTserif-unicode>",10pt)                             
'GraphValueFont' = ("<serif>, <MTserif>",10pt)                          
'GraphLabelFont' = ("<serif>, <MTserif>",10pt)                       
'GraphFootnoteFont' = ("<serif>, <MTserif>",10pt)               
'GraphTitleFont' = ("<serif>, <MTserif>",10pt,bold)                     
'GraphTitle1Font' = ("<serif>, <MTserif>",10pt,bold)   
'GraphAnnoFont' = ("<serif>, <MTserif>",10pt) ;  

replace Table from Output /
frame = hsides /* outside borders: void, box, above/below, vsides/hsides, lhs/rhs */
rules = groups /* internal borders: none, all, cols, rows, groups */
cellpadding = 3pt /* the space between table cell contents and the cell border */
cellspacing = 0pt /* the space between table cells, allows background to show */
borderwidth = .75pt /* the width of the borders and rules */;

replace color_list /
'link' = blue /* links */
'bgH' = white /* row and column header background */
'fg' = black /* text color */
'bg' = white; /* page background color */;

style body from document /
             leftmargin=1.5in
             rightmargin=1.5in
             topmargin=1in
             bottommargin=1in;
end;
run;

proc template;
define style Styles.Custom_narrow;
parent = Styles.RTF;

style usertext from usertext /
      font_size=10pt;

replace fonts /
'TitleFont' = ("Times",10pt,Bold) /* Titles from TITLE statements */
'TitleFont2' = ("Times",10pt,Bold) /* Procedure titles ("The _____ Procedure")*/
'StrongFont' = ("Times",10pt,Bold)
'EmphasisFont' = ("Times",10pt,Bold)
'headingEmphasisFont' = ("Times",10pt,Bold)
'headingFont' = ("Times",8pt,Bold) /* Table column and row headings */
'docFont' = ("Times",8pt) /* Data in table cells */
'footFont' = ("Times",10pt) /* Footnotes from FOOTNOTE statements */
'FixedEmphasisFont' = ("Times",10pt,Italic)
'FixedStrongFont' = ("Times",10pt,Bold)
'FixedHeadingFont' = ("Times",10pt,Bold)
'BatchFixedFont' = ("Times",10pt)
'FixedFont' = ("Times",10pt);

style GraphFonts from GraphFonts/                                                              
'GraphDataFont' = ("<serif>, <MTserif>",10pt)                          
'GraphUnicodeFont' = ("<MTserif-unicode>",10pt)                             
'GraphValueFont' = ("<serif>, <MTserif>",10pt)                          
'GraphLabelFont' = ("<serif>, <MTserif>",10pt)                       
'GraphFootnoteFont' = ("<serif>, <MTserif>",10pt)               
'GraphTitleFont' = ("<serif>, <MTserif>",10pt,bold)                     
'GraphTitle1Font' = ("<serif>, <MTserif>",10pt,bold)    
'GraphAnnoFont' = ("<serif>, <MTserif>",10pt) ; 

replace Table from Output /
frame = hsides /* outside borders: void, box, above/below, vsides/hsides, lhs/rhs */
rules = groups /* internal borders: none, all, cols, rows, groups */
cellpadding = 3pt /* the space between table cell contents and the cell border */
cellspacing = 0pt /* the space between table cells, allows background to show */
borderwidth = .75pt /* the width of the borders and rules */;

replace color_list /
'link' = blue /* links */
'bgH' = white /* row and column header background */
'fg' = black /* text color */
'bg' = white; /* page background color */;

style body from document /
      marginbottom = 1in
      margintop = 1in
      marginright = 0.5in
      marginleft = 0.5in;

end;
run;

proc template;
define style Styles.custom_narrow_pdf;
parent = Styles.rtf;
  
style usertext from usertext /
      font_size=12pt;

replace fonts from fonts/
'TitleFont' = ("Times",14pt,Bold) /* Titles from TITLE statements */
'TitleFont2' = ("Times",12pt,Bold) /* Procedure titles ("The _____ Procedure")*/
'StrongFont' = ("Times",12pt,Bold)
'EmphasisFont' = ("Times",12pt,Bold)
'headingEmphasisFont' = ("Times",12pt,Bold)
'headingFont' = ("Times",12pt,Bold) /* Table column and row headings */
'docFont' = ("Times",12pt) /* Data in table cells */
'footFont' = ("Times",12pt) /* Footnotes from FOOTNOTE statements */
'FixedEmphasisFont' = ("Times",12pt,Italic)
'FixedStrongFont' = ("Times",12pt,Bold)
'FixedHeadingFont' = ("Times",12pt,Bold)
'BatchFixedFont' = ("Times",12pt)
'FixedFont' = ("Times",12pt);

style GraphFonts from GraphFonts /                                                              
'GraphDataFont' = ("<serif>, <MTserif>",12pt)                          
'GraphUnicodeFont' = ("<MTserif-unicode>",12pt)                             
'GraphValueFont' = ("<serif>, <MTserif>",12pt)                          
'GraphLabelFont' = ("<serif>, <MTserif>",12pt)                       
'GraphFootnoteFont' = ("<serif>, <MTserif>",12pt)               
'GraphTitleFont' = ("<serif>, <MTserif>",12pt,bold)                     
'GraphTitle1Font' = ("<serif>, <MTserif>",12pt,bold)    
'GraphAnnoFont' = ("<serif>, <MTserif>",12pt) ; 

replace Table from Output /
frame = void /* outside borders: void, box, above/below, vsides/hsides, lhs/rhs */
rules = groups /* internal borders: none, all, cols, rows, groups */
cellpadding = 3pt /* the space between table cell contents and the cell border */
cellspacing = 0pt /* the space between table cells, allows background to show */
borderwidth = .75pt /* the width of the borders and rules */;

replace color_list /
'link' = blue /* links */
'bgH' = white /* row and column header background */
'fg' = black /* text color */
'bg' = white; /* page background color */;

style body from document /
      marginbottom = .2in
      margintop = .2in
      marginright = 0.2in
      marginleft = 0.2in;
style GraphBorderLines
         "Border attributes" /
         width = 0
         color=color_list("bg");

class GraphColors
      "Abstract colors used in graph styles" /
      'gblockheader' = cxd8dae5
      'gcphasebox' = cx000000
      'gphasebox' = cxC2C9D8
      'gczonec' = cxB7C2DA
      'gzonec' = cxCBD3E3
      'gczoneb' = cxC0CBE4
      'gzoneb' = cxD2D9E9
      'gzonea' = cxDBE2F1
      'gcunder' = cx8EB778
      'gunder' = cx8EB778
      'gcover' = cxEFDF28
      'gover' = cxEFDF28
      'gcfinal' = cxC28262
      'gfinal' = cxC28262
      'gcinitial' = cxEFC328
      'ginitial' = cxEFC328
      'gcother' = cxEFDF28
      'gother' = cxEFDF28
      'gcmiss' = cx979797
      'gmiss' = cxD7D0CC
      'gablock' = cxF1F0F6
      'gblock' = cxD7DFEF
      'gcclipping' = cxDC531F
      'gclipping' = cxE7774F
      'gcstars' = cx000000
      'gstars' = cxB9CFE7
      'gcruntest' = cxBF4D4D
      'gruntest' = cxCAE3FF
      'gccontrollim' = cxBFC7D9
      'gcontrollim' = cxE6F2FF
      'gcerror' = cx000000
      'gerror' = cxB9CFE7
      'gcpredictlim' = cx003178
      'gpredictlim' = cxB9CFE7
      'gcpredict' = cx003178
      'gpredict' = cx003178
      'gcconfidence2' = cx780000
      'gcconfidence' = cx003178
      'gconfidence2' = cxE7B9B9
      'gconfidence' = cxB9CFE7
      'gcfit2' = cx780000
      'gcfit' = cx003178
      'gfit2' = cx780000
      'gfit' = cx003178
      'gcoutlier' = cx000000
      'goutlier' = cxB9CFE7
      'gcdata' = cx000000
      'gdata' = cxB9CFE7
      'greferencelines' = cx808080
      'gheader' = colors('docbg')
      'gconramp3cend' = cxFF0000
      'gconramp3cneutral' = cxFF00FF
      'gconramp3cstart' = cx0000FF
      'gramp3cend' = cxDD6060
      'gramp3cneutral' = cxFFFFFF
      'gramp3cstart' = cx6497EB
      'gconramp2cend' = cx6497EB
      'gconramp2cstart' = cxF3F7FE
      'gramp2cend' = cx5E528B
      'gramp2cstart' = cxEDEBF6
      'gtext' = cx000000
      'glabel' = cx000000
      'gborderlines' = cx000000
      'goutlines' = cx000000
      'ggrid' = cxECECEC
      'gaxis' = cx000000
      'gshadow' = cx000000
      'glegend' = cxFFFFFF
      'gfloor' = cxFFFFFF
      'gwalls' = cxFFFFFF
      'gcdata12' = cxF9DA04
      'gcdata11' = cxB38EF3
      'gcdata10' = cx47A82A
      'gcdata9' = cxD17800
      'gcdata8' = cxB26084
      'gcdata6' = cx7F8E1F
      'gcdata7' = cx2597FA
      'gcdata4' = cx543005
      'gcdata5' = cx9D3CDB
      'gcdata3' = cx01665E
      'gcdata2' = cxB2182B
      'gcdata1' = cx2A25D9
      'gdata12' = cxDDD17E
      'gdata11' = cxB7AEF1
      'gdata10' = cx87C873
      'gdata9' = cxCF974B
      'gdata8' = cxCD7BA1
      'gdata6' = cxBABC5C
      'gdata7' = cx94BDE1
      'gdata4' = cxA9865B
      'gdata5' = cxB689CD
      'gdata3' = cx66A5A0
      'gdata2' = cxDE7E6F
      'gdata1' = cx7C95CA;
 class GraphDataDefault /
      endcolor = GraphColors('gramp3cend')
      neutralcolor = GraphColors('gramp3cneutral')
      startcolor = GraphColors('gramp3cstart')
      markersize = 7px
      markersymbol = "circle"
      linethickness = 1px
      linestyle = 1
      contrastcolor = GraphColors('gcdata')
      color = GraphColors('gdata');
   class GraphData1 /
      markersymbol = "circle"
      linestyle = 1
      contrastcolor = GraphColors('gcdata1')
      color = GraphColors('gdata1');
   class GraphData2 /
      markersymbol = "plus"
      linestyle = 1
      contrastcolor = GraphColors('gcdata2')
      color = GraphColors('gdata2');
end;
run;

proc template;
	define style styles.very_narrow;
		parent=styles.custom;
		style body from document /
 			leftmargin=.1in
			rightmargin=.1in
			topmargin=.1in
			bottommargin=.1in;
		style GraphValueText from GraphValueText / font=('Times New Roman', 9pt);
 		style GraphLabelText from GraphLabelText / font=('Times New Roman', 9pt);
		style GraphTitleText from GraphTitleText / font=('Times New Roman', 9pt, bold);
		end;

run;

proc template;
define style Styles.custom_narrow_pdf2;
parent = Styles.printer;
  
style usertext from usertext /
      font_size=12pt;

replace fonts from fonts/
'TitleFont' = ("Times",12pt,Bold) /* Titles from TITLE statements */
'TitleFont2' = ("Times",12pt,Bold) /* Procedure titles ("The _____ Procedure")*/
'StrongFont' = ("Times",12pt,Bold)
'EmphasisFont' = ("Times",12pt,Bold)
'headingEmphasisFont' = ("Times",12pt,Bold)
'headingFont' = ("Times",12pt,Bold) /* Table column and row headings */
'docFont' = ("Times",12pt) /* Data in table cells */
'footFont' = ("Times",12pt) /* Footnotes from FOOTNOTE statements */
'FixedEmphasisFont' = ("Times",12pt,Italic)
'FixedStrongFont' = ("Times",12pt,Bold)
'FixedHeadingFont' = ("Times",12pt,Bold)
'BatchFixedFont' = ("Times",12pt)
'FixedFont' = ("Times",12pt);

style GraphFonts from GraphFonts /                                                              
'GraphDataFont' = ("<serif>, <MTserif>",12pt)                          
'GraphUnicodeFont' = ("<MTserif-unicode>",12pt)                             
'GraphValueFont' = ("<serif>, <MTserif>",12pt)                          
'GraphLabelFont' = ("<serif>, <MTserif>",12pt)                       
'GraphFootnoteFont' = ("<serif>, <MTserif>",12pt)               
'GraphTitleFont' = ("<serif>, <MTserif>",14pt,bold)                     
'GraphTitle1Font' = ("<serif>, <MTserif>",14pt,bold)    
'GraphAnnoFont' = ("<serif>, <MTserif>",12pt) ; 

replace Table from Output /
frame = void /* outside borders: void, box, above/below, vsides/hsides, lhs/rhs */
rules = groups /* internal borders: none, all, cols, rows, groups */
cellpadding = 3pt /* the space between table cell contents and the cell border */
cellspacing = 0pt /* the space between table cells, allows background to show */
borderwidth = .75pt /* the width of the borders and rules */;

replace color_list /
'link' = blue /* links */
'bgH' = white /* row and column header background */
'fg' = black /* text color */
'bg' = white; /* page background color */;

style body from document /
      marginbottom = .2in
      margintop = .2in
      marginright = 0.2in
      marginleft = 0.2in;
style GraphBorderLines
         "Border attributes" /
         width = 0
         color=color_list("bg");
class graphwalls / 
            frameborder=off;
      class graphbackground / 
            color=white;

class GraphColors
      "Abstract colors used in graph styles" /
      'gblockheader' = cxd8dae5
      'gcphasebox' = cx000000
      'gphasebox' = cxC2C9D8
      'gczonec' = cxB7C2DA
      'gzonec' = cxCBD3E3
      'gczoneb' = cxC0CBE4
      'gzoneb' = cxD2D9E9
      'gzonea' = cxDBE2F1
      'gcunder' = cx8EB778
      'gunder' = cx8EB778
      'gcover' = cxEFDF28
      'gover' = cxEFDF28
      'gcfinal' = cxC28262
      'gfinal' = cxC28262
      'gcinitial' = cxEFC328
      'ginitial' = cxEFC328
      'gcother' = cxEFDF28
      'gother' = cxEFDF28
      'gcmiss' = cx979797
      'gmiss' = cxD7D0CC
      'gablock' = cxF1F0F6
      'gblock' = cxD7DFEF
      'gcclipping' = cxDC531F
      'gclipping' = cxE7774F
      'gcstars' = cx000000
      'gstars' = cxB9CFE7
      'gcruntest' = cxBF4D4D
      'gruntest' = cxCAE3FF
      'gccontrollim' = cxBFC7D9
      'gcontrollim' = cxE6F2FF
      'gcerror' = cx000000
      'gerror' = cxB9CFE7
      'gcpredictlim' = cx003178
      'gpredictlim' = cxB9CFE7
      'gcpredict' = cx003178
      'gpredict' = cx003178
      'gcconfidence2' = cx780000
      'gcconfidence' = cx003178
      'gconfidence2' = cxE7B9B9
      'gconfidence' = cxB9CFE7
      'gcfit2' = cx780000
      'gcfit' = cx003178
      'gfit2' = cx780000
      'gfit' = cx003178
      'gcoutlier' = cx000000
      'goutlier' = cxB9CFE7
      'gcdata' = cx000000
      'gdata' = cxB9CFE7
      'greferencelines' = cx808080
      'gheader' = colors('docbg')
      'gconramp3cend' = cxFF0000
      'gconramp3cneutral' = cxFF00FF
      'gconramp3cstart' = cx0000FF
      'gramp3cend' = cxDD6060
      'gramp3cneutral' = cxFFFFFF
      'gramp3cstart' = cx6497EB
      'gconramp2cend' = cx6497EB
      'gconramp2cstart' = cxF3F7FE
      'gramp2cend' = cx5E528B
      'gramp2cstart' = cxEDEBF6
      'gtext' = cx000000
      'glabel' = cx000000
      'gborderlines' = cx000000
      'goutlines' = cx000000
      'ggrid' = cxECECEC
      'gaxis' = cx000000
      'gshadow' = cx000000
      'glegend' = cxFFFFFF
      'gfloor' = cxFFFFFF
      'gwalls' = cxFFFFFF
      'gcdata12' = cxF9DA04
      'gcdata11' = cxB38EF3
      'gcdata10' = cx47A82A
      'gcdata9' = cxD17800
      'gcdata8' = cxB26084
      'gcdata6' = cx7F8E1F
      'gcdata7' = cx2597FA
      'gcdata4' = cx543005
      'gcdata5' = cx9D3CDB
      'gcdata3' = cx01665E
      'gcdata2' = cxB2182B
      'gcdata1' = cx2A25D9
      'gdata12' = cxDDD17E
      'gdata11' = cxB7AEF1
      'gdata10' = cx87C873
      'gdata9' = cxCF974B
      'gdata8' = cxCD7BA1
      'gdata6' = cxBABC5C
      'gdata7' = cx94BDE1
      'gdata4' = cxA9865B
      'gdata5' = cxB689CD
      'gdata3' = cx66A5A0
      'gdata2' = cxDE7E6F
      'gdata1' = cx7C95CA;

	   class GraphDataDefault /
      endcolor = GraphColors('gramp3cend')
      neutralcolor = GraphColors('gramp3cneutral')
      startcolor = GraphColors('gramp3cstart')
      markersize = 7px
      markersymbol = "circle"
      linethickness = 1px
      linestyle = 1
      contrastcolor = GraphColors('gcdata')
      color = GraphColors('gdata');
   class GraphData1 /
      markersymbol = "none"
      linestyle = 1
      contrastcolor = GraphColors('gcdata1')
      color = GraphColors('gdata1');
   class GraphData2 /
      markersymbol = "none"
      linestyle = 1
      contrastcolor = GraphColors('gcdata2')
      color = GraphColors('gdata2');
end;
run;


proc template;
  define style styles.mystyle;
  parent=styles.default;
    style GraphData1 from GraphData1 /
          contrastcolor=orange linestyle=1;
    style GraphData2 from GraphData2 /
          contrastcolor=purple linestyle=1;
  end;
run;
